package demoAnimal;

public class Frog extends Animal3 implements IAmphibious{
    public Frog(String name) {
        super(name);
    }

    @Override
    public void run() {
        System.out.println(name + "正在往前跳");
    }

    @Override
    public void swim() {
        System.out.println(name + "正在蹬腿游泳");
    }
}
